-
Notifications
You must be signed in to change notification settings - Fork 48
adds react-flow package #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| ``` js | ||
| { | ||
| "scripts": { | ||
| "lint": eslint-godaddy-flow files/ you/ want-to/ lint/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unclosed string in markdown
| ``` js | ||
| { | ||
| "scripts": { | ||
| "lint": eslint-godaddy-react-flow files/ you/ want-to/ lint/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unclosed string
d385b3b to
5089fcc
Compare
0489f11 to
fb356ba
Compare
fabiomcosta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
|
Give this a couple days to marinate. I know @indexzero wants a chance to review |
indexzero
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall +1, but would like to see the ruleset inherit from eslint-config-godaddy-react so new react-specific (but not flow-specific) changes can be made in only one place.
| @@ -0,0 +1,39 @@ | |||
| module.exports = { | |||
| extends: [ | |||
| require('./extends')('eslint-config-godaddy'), | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why wouldn't this be eslint-config-godaddy-react?
require('./extends')('eslint-config-godaddy-react'),There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, I'll make this change.
| 'react/jsx-curly-spacing': [2, 'always', { | ||
| spacing: { objectLiterals: 'never' } | ||
| }], | ||
| 'jsx-quotes': [2, 'prefer-single'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of these rules should be inherited from eslint-config-godaddy-react no? If we add rules to that package I'd like to see them reflected here.
indexzero
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Some teams are adopting Flow, but additional configuration is needed to get eslint to work with it.